# # 定义编译器和编译选项
# CXX = g++
# CXXFLAGS = -std=c++11

# # 目标
# all: client server

# # 构建 client
# client: tcp_cli.cc
# 	$(CXX) $(CXXFLAGS) tcp_cli.cc -o client

# # 构建 server
# server: tcp_srv.cc
# 	$(CXX) $(CXXFLAGS) tcp_srv.cc -o server

# # 清理生成的文件
# clean:
# 	rm -f client server

# 定义编译器和编译选项
CXX = g++
CXXFLAGS = -std=c++11

# 目标
all: client server

# 构建 client
client: tcp_cli.cc
	$(CXX) $(CXXFLAGS) tcp_cli.cc -o client

# 构建 server
server: server.cc
	$(CXX) $(CXXFLAGS) server.cc -o server

# 清理生成的文件
clean:
	rm -f client server